package com.googlecode.likesql.converter;

import java.util.List;

/**
 * Converter is to convert the object to a SQL string or template.
 * 
 * @author Johny
 *
 */
public interface Converter {

	/**
	 * Convert obj to SQL template
	 * 
	 * @param obj
	 * @return
	 */
	String toTemplate(Object obj);
	
	/**
	 * Convert obj to SQL string
	 * 
	 * @param obj
	 * @return
	 */
	String toSql(Object obj);
	
	List toValueList(Object obj);
}
